# 对象属性类的内部的操作
# 定义类:
class Person:
    # 定义对象方法
    def set_info(self):
        # TODO 增: 设置属性
        # 语法: self.attr = value
        name = 'hello'
        age = 18
        print(self)

    def get_info(self):
        # TODO 查询
        print(self.name)
        print(self.age)

    def edit_info(self):
        # TODO 修改
        self.name = 'good'
        self.age = 10

    # def del_info(self):
    #     # TODO 删除
    #     del self.name
    #     del self.age


p1 = Person()
p1.set_info()
print(p1)
